﻿using System;
using System.Text;
using System.Collections.Generic;

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Html;

namespace UnitTest {
    /// <summary>
    /// Summary description for SiteWrapperTests
    /// </summary>
    [TestClass]
    public class SiteWrapperTests {
        public SiteWrapperTests() {
            
        }

        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext {
            get {
                return testContextInstance;
            }
            set {
                testContextInstance = value;
            }
        }

        //[TestMethod]
        public void StaticWrapTest() {
            HTTPSiteWrapper _site = new HTTPSiteWrapper(new Uri("http://www.google.co.jp"));
            _site.Init();

            string _htmlData = _site.GetPage(new Uri("http://www.google.co.jp/search?hl=ja&q=the&lr=&aq=f&oq="));

            Assert.IsFalse(string.IsNullOrEmpty(_htmlData), "The wrapper returned nothing!");
        }

    }
}
